public class MyArray <T>{
    public Object[] array = new Object[10];
    public void setValue(int pos,T val){
        array[pos] = val;
    }
    public T getValue(int pos){
        return (T)array[pos];
    }
}
